<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<div id="app">
    {{msg}}
    <hr>
    <img style="width: 100px;" src="./assets/111.png" alt="">
    <!-- <img style="width: 100px;" src="./assets/111.png" alt=""> -->
    <img :style="style1" :src="url" alt="">




</div>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.min.js"></script>
<script>
    const vu = new Vue({
            el: "#app",
            data: {
                msg: 'hello vue',
                url: './assets/111.png',
                style1: 'width: 100px; height:200px '


            }
        })
        // console.log(vu.title) //取数据
        // console.log(vu.title = '插值表达式111') //改数据
</script>
<!-- //v-text/v-html优先级高于插值表达式 //v-text/v-html写在标签属性里面,插值表达式写在标签内容里面 //v-html能解析标签 -->





</body>

</html>